package allwe.reflact;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ShenWei
 * @Date: 2024/07/18/14:45
 */
public class MyTeamWorkAreaDTO {
    /**
     * 行政区划代码
     */
    private String areaCode;

    /**
     * 行政区划名称
     */
    private String areaName;

    /**
     * 行政区划简称
     */
    private String shortAreaName;

    /**
     * 行政区划等级 4-镇级 5-村级
     */
    private Integer areaLevel;

    // 扩展参数
    private List<MyTeamWorkAreaDTO> childList = new ArrayList<>();  // 下级列表


    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getShortAreaName() {
        return shortAreaName;
    }

    public void setShortAreaName(String shortAreaName) {
        this.shortAreaName = shortAreaName;
    }

    public Integer getAreaLevel() {
        return areaLevel;
    }

    public void setAreaLevel(Integer areaLevel) {
        this.areaLevel = areaLevel;
    }

    public List<MyTeamWorkAreaDTO> getChildList() {
        return childList;
    }

    public void setChildList(List<MyTeamWorkAreaDTO> childList) {
        this.childList = childList;
    }


    public static List<MyTeamWorkAreaDTO> getList() {
        List<MyTeamWorkAreaDTO> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            MyTeamWorkAreaDTO myTeamWorkAreaDTO = new MyTeamWorkAreaDTO();
            myTeamWorkAreaDTO.setAreaCode(i + "");
            myTeamWorkAreaDTO.setAreaLevel(i);
            list.add(myTeamWorkAreaDTO);
        }
        return list;
    }
}
